package com.bootdo.sms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.sms.dao.SmsCodeDao;
import com.bootdo.sms.domain.SmsCodeDO;
import com.bootdo.sms.service.SmsCodeService;



@Service
public class SmsCodeServiceImpl implements SmsCodeService {
	@Autowired
	private SmsCodeDao smsCodeDao;
	
	@Override
	public SmsCodeDO get(Long id){
		return smsCodeDao.get(id);
	}
	
	@Override
	public List<SmsCodeDO> list(Map<String, Object> map){
		return smsCodeDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return smsCodeDao.count(map);
	}
	
	@Override
	public int save(SmsCodeDO smsCode){
		return smsCodeDao.save(smsCode);
	}
	
	@Override
	public int update(SmsCodeDO smsCode){
		return smsCodeDao.update(smsCode);
	}
	
	@Override
	public int remove(Long id){
		return smsCodeDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return smsCodeDao.batchRemove(ids);
	}
	
}
